import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
  location: config.locationType
});
console.log("def routes");
Router.map(function() {
  console.log("this in route",this);
  this.route('setting', function() {
    var list = this.route('list');
    console.log("list in route",list);
  });
  this.route('business', function() {
    this.route('mainpage', function() {
      this.route('lineuse');
      this.route('curCalling');
      this.route('call-record');
      this.route('customer-info', function() {
      });
      this.route('customer-detail',{path:'customer-detail/:customer_id'});
      this.route('task-mine');
      this.route('call-billing');
      this.route('subtask-list');
      this.route('cs-stuff-show');
      this.route('task-square');
      this.route('cs-stuff-detail');
      this.route('invitations');
      this.route('call-billing');
      this.route('cs-stuff-mine');
      this.route('cs-info');
      this.route('business-info');
      this.route('business-task');
      this.route('knowledge-management');
      this.route('workorder-management');
      this.route('workorder-check');
      this.route('loading');
      this.route('message');
      this.route('mine');
      this.route('customer-info-ent');
      this.route('call-check');
      this.route('business-mine');
      this.route('knowledge-management');
      this.route('myinfo-item-edit');
      this.route('customer-service');
      this.route('entfinancial-management');
      this.route('warning-management');
      this.route('space-information-management');
      this.route('message-test');
      this.route('prepaid-record');
      this.route('cs-home');
      this.route('ent-home');
      this.route('publish-task');

      this.route('myinfo-certification');
      this.route('myinfo-cstag');

      this.route('publish-task-main');

      this.route('myinfo-setup');
      this.route('view-all');
      this.route('view-news');
      this.route('look-message');
      this.route('my-wallet');
      this.route('role-management');
      this.route('task-detail');
      this.route('task-count-detail');
      this.route('user-management');
      this.route('user-add');
      this.route('user-detail');
      this.route('room-management');
      this.route('bed-management');
      this.route('room-add');
      this.route('room-detail');
      this.route('bed-detail');
      this.route('bed-add');
      this.route('org-management');
      this.route('privilege-management');
      this.route('privilege-add');
      this.route('privilege-detail');
      this.route('service-item');
      this.route('service-add');
      this.route('service-detail');
      this.route('customer-service-detail');
      this.route('eva-plan');
      this.route('eva-plan-detail');
      this.route('warning-detail');
      this.route('eva-question');
      this.route('eva-detail');
      this.route('org-add-detail');
      this.route('service-level-set');
      this.route('service-level-add');
      this.route('service-level-detail');
      this.route('customer-add');
      this.route('building-management');
      this.route('staff-management');
      this.route('staff-add-detail');
      this.route('customer-service-m');
      this.route('floor-detail');
      this.route('nursing-worker-group-management');
      this.route('nursing-worker-group-detail');
      this.route('building-detail');
      this.route('role-detail');
      this.route('business-customer');
      this.route('business-customer-detail');

      this.route('public-area');
      this.route('public-area-detail');

      this.route('workbench-set');
      this.route('nursingproject');
      this.route('nursingproject-detail');
      this.route('nursing-plan');
      this.route('nursing-staff-scheduling');
      this.route('nursingplan-detail');
      this.route('service-counter-apply');
      this.route('tenant-management');
      this.route('tenant-detail');
      this.route('work-time-setting');
      this.route('work-time-setting-detail');
      this.route('nursing-staff-scheduling-detail');
      this.route('role-setting');
      this.route('customer-nursing-setting');
      this.route('serviceapplycheck');
      this.route('servicecheck-detail');
      this.route('eva-check');
      this.route('stay-back');
      this.route('stay-back-detail');
      this.route('scheduled');
      this.route('consultation-management');
      this.route('consultation-detail');
      this.route('visit-management');
      this.route('visit-detail');
      this.route('consultation-advance');
      this.route('recharge-management');
      this.route('recharge-detail');
      this.route('try-customer');
      this.route('try');
      this.route('checkin');
      this.route('checkin-customer');

      this.route('cost-management');
    });
    this.route('baseBusiness');
    this.route('pagination');
  });
  this.route('reset-pass');
  this.route('user-login');
  this.route('user-reg');
  this.route('reg-terms');
  this.route('test');
  this.route('description-document');

  this.route('budiness', function() {
    this.route('mainpage', function() {
      this.route('role-management');
      this.route('privilege-management');
    });
  });

  this.route('components', function() {
    this.route('callbusi', function() {});
  });
  this.route('business\\mainpage\\eva-question');
  this.route('business\\mainpage\\eva-detail');
  this.route('business\\mainpage\\space-information-management');
  this.route('business\\mainpage\\consultation-management');
  this.route('business\\mainpage\\consultation-detail');
  this.route('business\\mainpage\\visit-management');
  this.route('business\\mainpage\\visit-detail');
  this.route('business\\mainpage\\consultation-advance');
  this.route('business\\mainpage\\recharge-management');
  this.route('business\\mainpage\\recharge-detail');
});

export default Router;
